//
//  YHYDetailTableViewCell.m
//  Home
//
//  Created by 杨泓晔 on 16/7/9.
//  Copyright © 2016年 LanJue. All rights reserved.
//

#import "YHYDetailTableViewCell.h"

@interface YHYDetailTableViewCell ()<UITextViewDelegate>
@property (nonatomic, strong)UILabel *xmLabel;

@end

@implementation YHYDetailTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creatView];
        
        
    }
    return self;
}


- (void)creatView{
    
    //名字
    self.xmLabel = [[UILabel alloc]init];
    //self.xmLabel.textColor = HS;
    self.xmLabel.textColor = LINE;
    self.xmLabel.font = [UIFont fontWithName:TFont size:TEXTCONTENTFONT2 * AUTO_WIDTH];
    
    [self.contentView addSubview:_xmLabel];
    [self.xmLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.top.mas_equalTo(8 * AUTO_HEIGHT);
        make.left.mas_equalTo(15.00 * AUTO_WIDTH);
        make.size.mas_equalTo(CGSizeMake(6*18.00*AUTO_WIDTH, 25.00*AUTO_HEIGHT));
    }];
    self.xmLabel.text = @"详细描述";
    
    
    
    
    
    UIImageView *imageL = [UIImageView new];
    imageL.image = [UIImage imageNamed:@"虚线"];
    [self.contentView addSubview:imageL];
    [imageL mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(_xmLabel.mas_bottom).offset(4 * AUTO_HEIGHT);
        make.left.mas_equalTo(8 * AUTO_WIDTH);
        make.right.mas_equalTo(self.contentView.mas_right).offset(- 8 * AUTO_WIDTH);
        make.height.mas_equalTo(1.5 * AUTO_HEIGHT);
        
    }];
    
    
    _myTextView = [UITextView new];
    [self.contentView addSubview:_myTextView];
    [_myTextView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(imageL.mas_bottom).offset(8 * AUTO_HEIGHT);
        make.left.mas_equalTo(self.contentView).offset(8 * AUTO_WIDTH);
        make.bottom.mas_equalTo(self.contentView.mas_bottom).offset(- 8 * AUTO_HEIGHT);
        make.right.mas_equalTo(self.contentView.mas_right).offset( - 8* AUTO_WIDTH);
    }];
    _myTextView.textColor = ZI;
    _myTextView.font = [UIFont fontWithName:TFont size:TEXTCONTENTFONT2];
    _myTextView.keyboardType = UIKeyboardTypeASCIICapable;
  //  _myTextView.delegate = self;

    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
